// Lang_29 [Thread class].nova // The application class. class ThreadClassApp { // Application class's "main" function. public static void main( String[] args ) { ThreadTester t = new ThreadTester( ); Thread thread = new Thread( t ); thread.start( ); // Sleep to allow the thread to run. Thread.sleep( 1000 ); // Create a new thread to use the static method. thread = new Thread( threadProc ); thread.start( ); // Sleep to allow the thread to run. Thread.sleep( 1000 ); } private static void threadProc( ) { Stream.writeLine( "ThreadClass.threadProc( ) - called" ); } } class ThreadTester : IRunnable { public void run( ) { Stream.writeLine( "ThreadTester.run( ) - called" ); } }